<template>
  <el-dialog title="检索" :visible.sync="dialogFormVisible">
    <el-form :model="form">
      <el-form-item label="状态" :label-width="formLabelWidth">
        <el-select v-model="form.status" clearable placeholder="请选择状态">
          <el-option
            v-for="item in statusList"
            :key="item.value"
            :label="item.label"
            :value="item.value"
          />
        </el-select>
      </el-form-item>
    </el-form>
    <div slot="footer" class="dialog-footer">
      <el-button @click="dialogFormVisible = false">取 消</el-button>
      <el-button type="primary" @click="submit">确 定</el-button>
    </div>
  </el-dialog>
</template>

<script>
export default {
  data() {
    return {
      form: {
        status: ''
      },
      statusList: [
        {
          value: '0',
          label: '正常'
        },
        {
          value: '1',
          label: '失效'
        }
      ],
      formLabelWidth: '120px',
      dialogFormVisible: false
    }
  },
  computed: {

  },
  methods: {
    submit() {
      console.log(this.form)
      this.dialogFormVisible = false
      this.$emit('searchFun', this.form)
    }
  }
}
</script>

<style lang="sass" scoped>

</style>
